-- GENERATED SPELL FOR [Thelman Slatefist] --


function spell0_7410(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7410', 571, 1)
end

function spell1_7410(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7410', 6294, 1)
end

function spell2_7410(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7410', 5324, 1)
end

function spell3_7410(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_7410', 564, 1)
end

function spell4_7410(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_7410', 2000, 1)
end

function Sorts_7410(pUnit, Event)
local choix_sorts_7410 = math.random(0, 4)
if choix_sorts_7410 == 0 then
pUnit:RegisterEvent('spell0_7410', 1, 1)
end
if choix_sorts_7410 == 1 then
pUnit:RegisterEvent('spell1_7410', 1, 1)
end
if choix_sorts_7410 == 2 then
pUnit:RegisterEvent('spell2_7410', 1, 1)
end
if choix_sorts_7410 == 3 then
pUnit:RegisterEvent('spell3_7410', 1, 1)
end
if choix_sorts_7410 == 4 then
pUnit:RegisterEvent('spell4_7410', 1, 1)
end
end

function mob7410_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7410', math.random(1500, 3000), 1)
end

function mob7410_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7410_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7410_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7410, 1, 'mob7410_Action')
RegisterUnitEvent(7410, 2, 'mob7410_Leave')
RegisterUnitEvent(7410, 3, 'mob7410_Kill')
RegisterUnitEvent(7410, 4, 'mob7410_Die')
